﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Content.Master" Inherits="System.Web.Mvc.ViewPage<MethodWorx.CMS.UI.Areas.Dashboard.Models.TemplateInstallModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script language="javascript">
        $(document).ready(function () {
            //  ok, hide the please wait
            MethodWorx.CMS.hidePleaseWait();

            $("#close").click(function () {
                window.parent.closeDialog()
            });
        });
    </script>

    <%if(string.IsNullOrEmpty(this.Model.InstallationError))
      {%>
            <div class="formSuccess">
                The template installed successfully
            </div>
            <div class="formItem">
                <%=this.Model.Complete%>
            </div>
        <div class="formItem">
            <button onclick="window.parent.closeDialog()">Close</button>
        </div>
    <%
      }else
      {%>
      <div class="formError">
                The template did not install correctly
                <p>
                    <%=this.Model.InstallationError %>
                </p>
                <%=Html.ValidationSummary() %>
            </div>
        <div class="formItem">
            <button id="close" type="button">Close</button>
        </div>
      <%
      }%>
</asp:Content>
